home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1998 January
/
EnigmA AMIGA RUN 24 (1997)(G.R. Edizioni)(IT)[!][issue 1998-01 & 02].iso
/
EARCD
/
UTILI2
/
TragicWB
/
Install_TragicWB
next >
Wrap
Text File
|
1997-08-08
|
3KB
|
124 lines
(
(set #dest
(askdir
(prompt "Select the directory to install TragicWB to:")
(help @askdir-help)
(default "C:")
)
)
(set @default-dest #dest)
(set #startup
(or
(= @user-level 0)
(askbool
(prompt "Do you want TragicWB to start when you boot your Amiga?")
(help "If you answer Yes, TragicWB will be added to your "
"user-startup file, so it will start automatically "
"when you switch on or reboot your Amiga. If you "
"answer No, you will have to start TragicWB "
"from a CLI, which isn't very convenient and "
"may not work at all.")
)
)
)
(set #installpal
(or
(= @user-level 0)
(askbool
(prompt "Do you want to use the Magic Workbench palette?")
(help "If you answer Yes, your palette preferences will "
"be set to the Magic Workbench colour scheme. If you answer "
"No, then your palette will not be changed, and "
"old-style Magic Workbench icons will still have the wrong "
"colours.")
)
)
)
(set #depth "")
(if (> @user-level 0)
(
(set #depth_opt
(askchoice
(prompt "When should TragicWB obtain pens for the standard "
"NewIcons colours?")
(help "If you don't use NewIcons or don't want to change "
"the way NewIcons dynamically allocates pens, answer "
"\"Never\". Otherwise choose how the minimum number "
"of colours on the Workbench screen for TragicWB "
"to allocate NewIcons pens. I'd suggest choosing "
"32 or 64 colours, as preferences plus MagicWB "
"plus NewIcons colours gives a total of 22 pens.")
(choices
"pNever"
"When WB has 16 or more colours"
"When WB has 32 or more colours"
"When WB has 64 or more colours"
"When WB has 128 or more colours"
"When WB has 256 or more colours")
)
)
(if (> #depth_opt 0)
(set #depth (" NEWICONSDEPTH=%ld" (+ #depth_opt 3)))
)
)
)
(set #startnow
(or
(= @user-level 0)
(askbool
(prompt "Do you want to start TragicWB now?")
(help "If you answer Yes, TragicWB will be started as "
"soon as it has been installed. If you answer "
"No, it will not start until you reboot or run "
"it from a CLI.")
)
)
)
(complete 20)
; Don't blame me for this. Tf the user chooses to start TragicWB
; now, I must do (run "TragicWB" ...). But I must also copy
; MWB-palette.pre to env:sys/, if the user chose to do that as
; well. So I have to ask in advance and then perform actions
; based on two questions without re-prompting - which would be stupid.
; If anyone can tell me a better way to do this, I'll use it in future.
(set @user-level 0)
(copyfiles (source "TragicWB") (dest #dest) (prompt "") (help ""))
(complete 40)
(if #startup
(startup @app-name
(command (cat (tackon #dest "TragicWB") #depth))
(prompt "") (help "")
)
)
(if #installpal
(copyfiles (source "MWB-palette.pre") (dest "envarc:sys") (newname "palette.prefs") (prompt "") (help ""))
(complete 60)
(if #startnow
(copyfiles (source "MWB-palette.pre") (dest "env:sys") (newname "palette.prefs") (prompt "") (help ""))
)
)
(complete 80)
(if #startnow
(run (cat (tackon #dest "TragicWB") #depth) (prompt "") (help ""))
)
(complete 100)
)